home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: New Zealand Amiga Users Group / New Zealand Amiga Users Group Newsdisk v25 (1989-08)(NZAmigaUG).zip / New Zealand Amiga Users Group Newsdisk v25 (1989-08)(NZAmigaUG).adf / StrucBrowser / sb.src.zoo / SBLibrary.c < prev    next >
C/C++ Source or Header  |  1988-06-22  |  1KB  |  43 lines

  1. /************************************************************************
  2. *                                    *
  3. *                SBLibrary                *
  4. *                                    *
  5. *    by David Annett, 3 Sutherland Ave, Upper Hutt, New Zealand    *
  6. *                                    *
  7. *                17 July 89                *
  8. *                                    *
  9. *************************************************************************/
  10.  
  11. include "sb.h"
  12.  
  13. extern int level;
  14.  
  15.  
  16. void PrLibrary(string, library) char *string; struct Library *library;
  17. {
  18. static struct StructData structdata[] = {
  19.      { " lib_Node",     "struct Node",             0, SZ(Node) },
  20.      { "-lib_Flags",    "UBYTE",                   3, BYTESIZE },
  21.      { "-lib_pad",      "UBYTE",                   3, BYTESIZE },
  22.      { "-lib_NegSize",  "UWORD",                   2, INTSIZE  },
  23.      { "-lib_PosSize",  "UWORD",                   2, INTSIZE  },
  24.      { "-lib_Version",  "UWORD",                   2, INTSIZE  },
  25.      { "-lib_Revision", "UWORD",                   2, INTSIZE  },
  26.      { "-lib_IdString", "APTR",                    4, PTRSIZE  },
  27.      { "-lib_Sum",      "ULONG",                   1, PTRSIZE  },
  28.      { "-lib_OpenCnt",  "UWORD",                   2, INTSIZE  }
  29.   };
  30. int sum, choice = -1;
  31.   level++;
  32.   while (choice) {
  33.     sum = SetOptionText(string, structdata, (APTR)library, DATASIZE, 0);
  34.     switch (choice = GetChoice(DATASIZE)) {
  35.       case 1:
  36.           PrNode("Library->lib_Node", &library->lib_Node);
  37.           break;
  38.     }
  39.   }
  40.   level--;
  41. }
  42.  
  43.